/*
 * ReceiptCheckState.cpp
 *
 *  Created on: 2014. 1. 27.
 *      Author: mega
 */


#include "ReceiptCheckState.h"
#include "../command/common.h"

namespace ProjectZ { namespace NState {

ReceiptCheckState::ReceiptCheckState()
{
	_name = "RECEIPTCHECK";

//	this->AddCommand(CMD_CLOSE, OnClose);
	this->AddCommand(CMD_CS_PING, ProjectZ::NCommand::CS_PING::OnExecute);
}

ReceiptCheckState::~ReceiptCheckState()
{

}

void
ReceiptCheckState::OnClose(User * pUser, bool bForceClose)
{
	pUser->SetEnumState(User::EnumState::RECEIPT_CHECKING_CLOSE);
}

} /*NState*/ } /* namespace ProjectZ */


